package design;

public class Danli
{
    private Danli() {}
    private static Danli danli;

    //静态内部类的实现方式
    private static class InnerDanli
    {
        private static Danli danli = new Danli();
    }

    public static Danli getInstance()
    {
        return InnerDanli.danli;
    }
}
